package com.jye.rseven.service;

import com.jye.rseven.domain.Promotion;

import java.util.List;

public interface PromotionService {
    //根据id进行查询
    Promotion findPromotionById( int id);

    //查询被推广表所有数据
    List<Promotion> findAllPromotion(int skip, int limit);

    //添加数据到被推广表
    String addPromotion(Promotion promotion);

    int updatePromotion(Promotion promotion);


    //通过分享码进行查询
    Promotion findPromotionByShareCode(String shareCode);
}
